package com.nb.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@Table(value = "sys_role",dataSource = "primaryDS")
public class Role {

    @Id
    @Column(value = "id")
    private Long id;
    @Column(value = "name")
    private String name;
    @Column(value = "code")
    private String code;
    @Column(value = "data_scope")
    private String dataScope;
    @Column(value = "is_delete")
    private Integer isDelete;
    @Column(value = "created_by")
    private String createdBy;
    @Column(value = "updated_by")
    private String updatedBy;
    @Column(value = "created_time")
    private LocalDateTime createdTime;
    @Column(value = "updated_time")
    private LocalDateTime updatedTime;
}
